<template lang="pug">
  div.kalix-article
    keep-alive
      el-row.frame-row(:gutter="10")
        el-col.s-flex.flex-column.frame-col(v-bind:span="20")
          div.s-flex_item.frame-item
            keep-alive
              kalix-exam-maintainresult(title="考试成绩列表" searchTitle="考试成绩查询"
                v-on:resultRow="getResultRow" v-on:clearItem="clearItem")
          div.s-flex_item.frame-item
            keep-alive
              kalix-exam-maintainitem(title="评分项列表" v-bind:examScoreId="examScoreId")
</template>

<script type="text/ecmascript-6">
  export default {
    name: 'kalix-exam-exammaintain',
    data() {
      return {
        examScoreId: -1
      }
    },
    methods: {
      clearItem() {
        this.examScoreId = -1
      },
      getResultRow(row) {
        this.examScoreId = row.examScoreId
      }
    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">
  .frame-row .frame-col
    width 100%
</style>
